package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class MethodSpecificationDesignatorSubtype1 implements MethodSpecificationDesignator {

    private int beginIndex;
    private int endIndex;
    private SchemaQualifiedName specificMethodName;

    public MethodSpecificationDesignatorSubtype1(int beginIndex, SchemaQualifiedName specificMethodName) {
        this.beginIndex = beginIndex;
        this.endIndex = specificMethodName.getEndIndex();
        this.specificMethodName = specificMethodName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaQualifiedName getSpecificMethodName() {
        return specificMethodName;
    }

}
